﻿using ERPSystem.Common.DTO;
using MediatR;

namespace BasicInformationWrite.API.BasicInformationCommons.suppliers
{
    public class PurchaseOrderUpdateCommand : IRequest<Result>
    {
        public int PurchaseOrderId { get; set; }
        /// <summary>
        /// 单据编码
        /// </summary>
        public string? ReceiptNum { get; set; }
        /// <summary>
        /// 单据状态
        /// </summary>
        public string? ReceiptState { get; set; }
        /// <summary>
        /// 单据日期
        /// </summary>
        public DateTime? ReceiptDate { get; set; }
        /// <summary>
        /// 业务类型
        /// </summary>
        public string? BusinessType { get; set; }
        /// <summary>
        /// 业务状态
        /// </summary>
        public string? ServiceStatus { get; set; }
        /// <summary>
        /// 采购部门
        /// </summary>
        public string? Department { get; set; }
        /// <summary>
        /// 采购人员
        /// </summary>
        public string? Buyer { get; set; }
        /// <summary>
        /// 操作人
        /// </summary>
        public string? Operator { get; set; }
        /// <summary>
        /// 审核员
        /// </summary>
        public string? Auditor { get; set; }
        /// <summary>
        /// 审核日期
        /// </summary>
        public DateTime? ApprovalDate { get; set; }
        /// <summary>
        /// 用料需求
        /// </summary>
        public string? MaterialDemand { get; set; }
        /// <summary>
        /// 供方
        /// </summary>
        public string? System { get; set; }
        /// <summary>
        /// 到货日期
        /// </summary>
        public DateTime? DeliveryDate { get; set; }
        /// <summary>
        /// 采购合同
        /// </summary>
        public string? PurchasingContract { get; set; }
        /// <summary>
        /// 备注信息
        /// </summary>
        public string? Remark { get; set; }
        /// <summary>
        /// 跟单编号
        /// </summary>
        public string? OrderNumber { get; set; }
        /// <summary>
        /// 物料编码
        /// </summary>
        public string? MaterialCode { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        public string? MaterialName { get; set; }
        /// <summary>
        /// 型号规格
        /// </summary>
        public string? TypeSpecification { get; set; }
        /// <summary>
        /// 颜色
        /// </summary>
        public string? Color { get; set; }
        /// <summary>
        /// 主计量
        /// </summary>
        public string? DocumentType { get; set; }
        /// <summary>
        /// 需求日期
        /// </summary>
        public DateTime? RequirementDate { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public int Quantity { get; set; }
        /// <summary>
        /// 单价
        /// </summary>
        public decimal? UnitPrice { get; set; }
        /// <summary>
        /// 金额
        /// </summary>
        public decimal? Amount { get; set; }
        /// <summary>
        /// 到货数量
        /// </summary>
        public int ArrivalQuantity { get; set; }
        /// <summary>
        /// 采购说明
        /// </summary>
        public string? PurchaseDescription { get; set; }
    }
}
